package com.lsn.watermall.listener;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
@RabbitListener(queues = {"water_queue"})
public class RabbitMqListener {
    @RabbitHandler

    public void process(Map testMessage) {
        System.out.println("WaterQueue消费者收到消息  : " + testMessage.toString());
    }

}
